\hypertarget{structgdl_1_1Color}{
\section{gdl::Color Struct Reference}
\label{structgdl_1_1Color}\index{gdl::Color@{gdl::Color}}
}


{\ttfamily \#include $<$Color.hpp$>$}\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef unsigned char \hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structgdl_1_1Color_aa898b04614ee1e721a5413cb9b6cae16}{Color} ()
\item 
\hyperlink{structgdl_1_1Color_a7c67cb8a5174ca1f0817857a6ef37fef}{Color} (\hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar} \hyperlink{structgdl_1_1Color_aacd5f4d3c04fd4f47986f400a70c9143}{r}, \hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar} \hyperlink{structgdl_1_1Color_a47b05c3bbf1ece915e3cd7e260b5bfa4}{g}, \hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar} \hyperlink{structgdl_1_1Color_aa0b3ca9d0a465b76b4bc955ba2c38352}{b}, \hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar} \hyperlink{structgdl_1_1Color_af3fd2777ff073f3020d5d1fa1d25e38b}{a}=255)
\item 
\hyperlink{structgdl_1_1Color_a416bf40b4967d73bb91023ec8dd56994}{Color} (const \hyperlink{structgdl_1_1Color}{Color} \&)
\item 
\hyperlink{structgdl_1_1Color_afb38b5f4475e657c82c6e0c4e835d1ea}{$\sim$Color} (void)
\item 
\hyperlink{structgdl_1_1Color}{Color} \& \hyperlink{structgdl_1_1Color_a3ef6a664a4ae454eb846ea381c679dba}{operator=} (\hyperlink{structgdl_1_1Color}{Color} const \&)
\item 
bool \hyperlink{structgdl_1_1Color_a90c8f9a5fe3bca45d2760619097f3be2}{operator==} (\hyperlink{structgdl_1_1Color}{Color} const \&) const 
\item 
bool \hyperlink{structgdl_1_1Color_af2fbc33fd8ab45ab40fd61bc1acf67ad}{operator!=} (\hyperlink{structgdl_1_1Color}{Color} const \&) const 
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar} \hyperlink{structgdl_1_1Color_aacd5f4d3c04fd4f47986f400a70c9143}{r}
\item 
\hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar} \hyperlink{structgdl_1_1Color_a47b05c3bbf1ece915e3cd7e260b5bfa4}{g}
\item 
\hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar} \hyperlink{structgdl_1_1Color_aa0b3ca9d0a465b76b4bc955ba2c38352}{b}
\item 
\hyperlink{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{uchar} \hyperlink{structgdl_1_1Color_af3fd2777ff073f3020d5d1fa1d25e38b}{a}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The color class provides an simple container to manage colors. 

\subsection{Member Typedef Documentation}
\hypertarget{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}{
\index{gdl::Color@{gdl::Color}!uchar@{uchar}}
\index{uchar@{uchar}!gdl::Color@{gdl::Color}}
\subsubsection[{uchar}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned char {\bf gdl::Color::uchar}}}
\label{structgdl_1_1Color_a5f5cae76580de8bc9abf0ca1ab33e126}
Type redefinition. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{structgdl_1_1Color_aa898b04614ee1e721a5413cb9b6cae16}{
\index{gdl::Color@{gdl::Color}!Color@{Color}}
\index{Color@{Color}!gdl::Color@{gdl::Color}}
\subsubsection[{Color}]{\setlength{\rightskip}{0pt plus 5cm}gdl::Color::Color ()}}
\label{structgdl_1_1Color_aa898b04614ee1e721a5413cb9b6cae16}
Default constructor. \hypertarget{structgdl_1_1Color_a7c67cb8a5174ca1f0817857a6ef37fef}{
\index{gdl::Color@{gdl::Color}!Color@{Color}}
\index{Color@{Color}!gdl::Color@{gdl::Color}}
\subsubsection[{Color}]{\setlength{\rightskip}{0pt plus 5cm}gdl::Color::Color ({\bf uchar} {\em r}, \/  {\bf uchar} {\em g}, \/  {\bf uchar} {\em b}, \/  {\bf uchar} {\em a} = {\ttfamily 255})}}
\label{structgdl_1_1Color_a7c67cb8a5174ca1f0817857a6ef37fef}
Constructor.


\begin{DoxyParams}{Parameters}
\item[\mbox{$\leftarrow$} {\em r}]Byte for red component. \item[\mbox{$\leftarrow$} {\em g}]Byte for green component. \item[\mbox{$\leftarrow$} {\em b}]Byte for blue component. \item[\mbox{$\leftarrow$} {\em a}]Byte for alpha component. \end{DoxyParams}
\hypertarget{structgdl_1_1Color_a416bf40b4967d73bb91023ec8dd56994}{
\index{gdl::Color@{gdl::Color}!Color@{Color}}
\index{Color@{Color}!gdl::Color@{gdl::Color}}
\subsubsection[{Color}]{\setlength{\rightskip}{0pt plus 5cm}gdl::Color::Color (const {\bf Color} \& {\em color})}}
\label{structgdl_1_1Color_a416bf40b4967d73bb91023ec8dd56994}
Copy constructor.


\begin{DoxyParams}{Parameters}
\item[\mbox{$\leftarrow$} {\em color}]Instance to copy. \end{DoxyParams}
\hypertarget{structgdl_1_1Color_afb38b5f4475e657c82c6e0c4e835d1ea}{
\index{gdl::Color@{gdl::Color}!$\sim$Color@{$\sim$Color}}
\index{$\sim$Color@{$\sim$Color}!gdl::Color@{gdl::Color}}
\subsubsection[{$\sim$Color}]{\setlength{\rightskip}{0pt plus 5cm}gdl::Color::$\sim$Color (void)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{structgdl_1_1Color_afb38b5f4475e657c82c6e0c4e835d1ea}
Default destructor. 

\subsection{Member Function Documentation}
\hypertarget{structgdl_1_1Color_af2fbc33fd8ab45ab40fd61bc1acf67ad}{
\index{gdl::Color@{gdl::Color}!operator!=@{operator!=}}
\index{operator!=@{operator!=}!gdl::Color@{gdl::Color}}
\subsubsection[{operator!=}]{\setlength{\rightskip}{0pt plus 5cm}bool gdl::Color::operator!= ({\bf Color} const \& {\em c}) const}}
\label{structgdl_1_1Color_af2fbc33fd8ab45ab40fd61bc1acf67ad}
Overloading of the comparison operator.

\begin{DoxyReturn}{Returns}
If the test succeed, true is returned. Otherwise, false is returned. 
\end{DoxyReturn}
\hypertarget{structgdl_1_1Color_a3ef6a664a4ae454eb846ea381c679dba}{
\index{gdl::Color@{gdl::Color}!operator=@{operator=}}
\index{operator=@{operator=}!gdl::Color@{gdl::Color}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Color} \& gdl::Color::operator= ({\bf Color} const \& {\em color})}}
\label{structgdl_1_1Color_a3ef6a664a4ae454eb846ea381c679dba}
Overloading of the assignment operator.

\begin{DoxyReturn}{Returns}
An reference on the \hyperlink{structgdl_1_1Color}{Color} instance. 
\end{DoxyReturn}
\hypertarget{structgdl_1_1Color_a90c8f9a5fe3bca45d2760619097f3be2}{
\index{gdl::Color@{gdl::Color}!operator==@{operator==}}
\index{operator==@{operator==}!gdl::Color@{gdl::Color}}
\subsubsection[{operator==}]{\setlength{\rightskip}{0pt plus 5cm}bool gdl::Color::operator== ({\bf Color} const \& {\em c}) const}}
\label{structgdl_1_1Color_a90c8f9a5fe3bca45d2760619097f3be2}
Overloading of the comparison operator.

\begin{DoxyReturn}{Returns}
If the test succeed, true is returned. Otherwise, false is returned. 
\end{DoxyReturn}


\subsection{Member Data Documentation}
\hypertarget{structgdl_1_1Color_af3fd2777ff073f3020d5d1fa1d25e38b}{
\index{gdl::Color@{gdl::Color}!a@{a}}
\index{a@{a}!gdl::Color@{gdl::Color}}
\subsubsection[{a}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf gdl::Color::a}}}
\label{structgdl_1_1Color_af3fd2777ff073f3020d5d1fa1d25e38b}
Alpha component. \hypertarget{structgdl_1_1Color_aa0b3ca9d0a465b76b4bc955ba2c38352}{
\index{gdl::Color@{gdl::Color}!b@{b}}
\index{b@{b}!gdl::Color@{gdl::Color}}
\subsubsection[{b}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf gdl::Color::b}}}
\label{structgdl_1_1Color_aa0b3ca9d0a465b76b4bc955ba2c38352}
Blue component. \hypertarget{structgdl_1_1Color_a47b05c3bbf1ece915e3cd7e260b5bfa4}{
\index{gdl::Color@{gdl::Color}!g@{g}}
\index{g@{g}!gdl::Color@{gdl::Color}}
\subsubsection[{g}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf gdl::Color::g}}}
\label{structgdl_1_1Color_a47b05c3bbf1ece915e3cd7e260b5bfa4}
Green component. \hypertarget{structgdl_1_1Color_aacd5f4d3c04fd4f47986f400a70c9143}{
\index{gdl::Color@{gdl::Color}!r@{r}}
\index{r@{r}!gdl::Color@{gdl::Color}}
\subsubsection[{r}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uchar} {\bf gdl::Color::r}}}
\label{structgdl_1_1Color_aacd5f4d3c04fd4f47986f400a70c9143}
Red component. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
Color.hpp\item 
Color.cpp\end{DoxyCompactItemize}
